package com.ozy.kxreader.di.module

import android.app.Application
import com.google.gson.GsonBuilder
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

/**
 * Created by 欧源 on 2018/1/29.
 */
@Module
class AppModule(private val mApplication: Application) {

    @Singleton
    @Provides
    fun provideApplication(): Application {
        return mApplication
    }


    @Singleton
    @Provides
    fun provideGson() = GsonBuilder().create()


}